package org.blogwu.learn.temp;

import cn.hutool.json.JSONUtil;

import java.util.Scanner;

class T1{
        String name = "t1";
        String s1 = "s1";


}

class T2 extends  T1{
    String name = "t2";
}

public class T3  extends  T2{


    public static void main(String[] args) {
//        System.out.println(new T2().name);
//        System.out.println(((T1)new T3()).name);
//
//        int x = 5;
//        x = ~x;
//        x +=3;
//        x = x>> 1;
//        System.out.println(x);

        String[] s1 = {"Test","null","Test","1","2","3","test"};
        StringBuilder stringBuilder = new StringBuilder();
        for (String arg : s1){
            if (stringBuilder.indexOf( arg ) < 1){
                stringBuilder.append(arg+" ");
            }
        }
        System.out.println(stringBuilder.toString());
        Scanner sc = new Scanner(stringBuilder.toString() );
        while(sc.hasNext()){
            if (sc.hasNextInt()){
                System.out.println( sc.nextInt()+" ");
            }else {
                sc.next();
            }
        }

        Float f = new Float(12.32);
        Double d = new Double("7.46d");
        Boolean b = new Boolean("false");
    }
}
